/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.KDniao.service.logistics;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.KDniao.dao.LogisticTrackingTrajectoryDao;
import com.thinkgem.jeesite.modules.KDniao.entity.LogisticTrackingTrajectory;

/**
 * 物流跟踪信息Service
 * @author OWEN
 * @version 2017-04-07
 */
@Service
@Transactional(readOnly = true)
public class LogisticTrackingTrajectoryService extends CrudService<LogisticTrackingTrajectoryDao, LogisticTrackingTrajectory> {

    @Autowired
    private LogisticTrackingTrajectoryDao logisticTrackingTrajectoryDao;

	public LogisticTrackingTrajectory get(String id) {
		return super.get(id);
	}
	
	public List<LogisticTrackingTrajectory> findList(LogisticTrackingTrajectory logisticTrackingTrajectory) {
		return super.findList(logisticTrackingTrajectory);
	}
	
	public Page<LogisticTrackingTrajectory> findPage(Page<LogisticTrackingTrajectory> page, LogisticTrackingTrajectory logisticTrackingTrajectory) {
		return super.findPage(page, logisticTrackingTrajectory);
	}
	
	@Transactional(readOnly = false)
	public void save(LogisticTrackingTrajectory logisticTrackingTrajectory) {
		super.save(logisticTrackingTrajectory);
	}
	
	@Transactional(readOnly = false)
	public void delete(LogisticTrackingTrajectory logisticTrackingTrajectory) {
		super.delete(logisticTrackingTrajectory);
	}
	
    public LogisticTrackingTrajectory getTrackingTrajectorybyOrderCode(String ordercode) {
        return logisticTrackingTrajectoryDao.getTrackingTrajectorybyOrderCode(ordercode);
    }

    public List<LogisticTrackingTrajectory> getTrackingbyLogisticCodeandShipperCode(LogisticTrackingTrajectory logisticTrackingTrajectory) {
        return logisticTrackingTrajectoryDao.getTrackingbyLogisticCodeandShipperCode(logisticTrackingTrajectory);
    }

}